package com.training.java.core.inheritance;

public class PlayerDemo {

	public static void main(String[] args) {
		
		
		Player player = new Player("Satya",1,"IDLE");
		
		//calling the method start
		
		player.start();
		player.stop();
	
		//calling the method to know the player status
		player.playerStatus();
		System.out.println(" Initial status  of the player  " + player.getStatus());
		
		
		// get the details of player.
		
		System.out.println("Player name is: " + player.getName());
		System.out.println("Player  Number is "+ player.getNumber());
		System.out.println("Player status is "+ player.getStatus());
		
		
		//setting the status 
		player.setStatus("WALK");
		System.out.println("Player status afert setting the status  to "+ player.getStatus());
		
		//setting the started to true.
		
		player.setStarted(true);
		System.out.println("player is   playing  t/f:" + player.isStarted());
	}

}
